package com.tianji.learning.controller;


import com.tianji.learning.domain.po.PointsBoardSeason;
import com.tianji.learning.service.IPointsBoardSeasonService;
import groovy.util.logging.Slf4j;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author elliehy
 * @since 2024-06-07
 */
@RestController
@RequestMapping("/boards/seasons")
@RequiredArgsConstructor
@Slf4j
@Api(tags = "赛季相关接口")
public class PointsBoardSeasonController {
	
	private final IPointsBoardSeasonService boardSeasonService;
	
	@ApiOperation("查询赛季列表")
	@GetMapping("list")
	public List<PointsBoardSeason> queryPointsBoardSeasonList() {
		return boardSeasonService.list();
	}
}
